package com.biz.primus.ms.member.dao.po;

import com.biz.primus.ms.base.jpa.po.BaseEntityPKIncrement;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 会员积分改变记录
 *
 * @author jun.liu
 * @date 2017年10月22日
 * @reviewer
 * @see
 */
@Entity
@Table(name = "member_integral_change")
@Data
@EqualsAndHashCode(callSuper = true)
public class MemberIntegralChange extends BaseEntityPKIncrement
{

    /**
     * 关联会员详情Member对象
     */
    @Column(name = "memberId")
    private Long memberId;

    /**
     * 关联会员积分规则MemberIntegralRule对象
     *
     * 改变的值在规则里面     */
    @Column(name = "member_integral_rule_id")
    private Long memberIntegralRuleId;

    /**
     * 改变之前的integral
     */
    @Column(name = "before_integral")
    private Integer beforeIntegral;

    /**
     * 改变之后的integral
     */
    @Column(name = "after_integral")
    private Integer afterIntegral;

}
